# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>

pkgname=mitmproxy2swagger
pkgver=0.8.2
pkgrel=2
pkgdesc='Automagically reverse-engineer REST APIs via capturing traffic'
url='https://github.com/alufers/mitmproxy2swagger'
arch=('any')
license=('MIT')
depends=(python mitmproxy python-ruamel-yaml python-json-stream)
makedepends=(python-build python-installer python-wheel python-poetry-core)
source=(https://github.com/alufers/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
b2sums=('0e1cb1f7e8c260b660757c08ec1793820e8f4a2776fad068e409916ec55d748693f4fd76d3bc7ade7588480aa23082041e94b70fd8ac30469f1e451b605fd3ae')

build() {
  cd ${pkgname}-${pkgver}
  python -m build --wheel --no-isolation
}

package() {
  cd ${pkgname}-${pkgver}
  python -m installer --destdir="${pkgdir}" dist/*.whl
}

# vim: ts=2 sw=2 et:
